<?php 
namespace ProductType\Model;

class ProductType
{
	public $ID_PRT;
	public $NAME_PRT;	
	public $ACTIVE_PRT;

	public $namepro;
	public $producttypes;
	public $contentpro;
	public $activepro;
	
	public function exchangeArray($data)
	{
		$this->ID_PRT     = (!empty($data['ID_PRT'])) ? $data['ID_PRT'] : null;
		$this->NAME_PRT = (!empty($data['NAME_PRT'])) ? $data['NAME_PRT'] : null;	
		$this->ACTIVE_PRT = (!empty($data['ACTIVE_PRT'])) ? $data['ACTIVE_PRT'] : null;
	}
	
	// Add the following method:
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}
	
	
	public function addArray($data)
	{
		$this->nameprotype = (!empty($data['nameprotype'])) ? $data['nameprotype'] : null;
		$this->activeprotype = (!empty($data['activeprotype'])) ? $data['activeprotype'] : null;
		//$this->idproduct = (!empty($data['idproduct'])) ? $data['idproduct'] : null;
	}
}